<div class="top navbar-fixed-top" role="header" xmlns="http://www.w3.org/1999/html">
  <div class="container">
    <a href="#" class="navbar-brand pull-left">
      隐患排查
    </a>
    <button class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
      <span class="glyphicon glyphicon-align-justify"></span>
    </button>
    <nav class="navbar-collapse collapse" role="navigation">
      <ul class="navbar-nav nav">
        <li><a href="#/qiyeMain">首页工作提醒</a></li>
        <li><a href="#/qiyeyinhuanByid">隐患核查复查</a></li>
      </ul>
      <!--<form class="navbar-form navbar-left" role="search" style="padding-top: 5px">-->
      <!--<div class="form-group">-->
      <!--<input type="text" class="form-control input-sm" placeholder="搜索你感兴趣的事情">-->
      <!--</div>-->
      <!--<button type="submit" class="btn btn-sm">搜索</button>-->
      <!--</form>-->
      <ul class="nav navbar-nav navbar-right">
        <li><a href="#/logout">退出</a></li>
      </ul>
    </nav>
  </div>
</div>
<!-- Middle content section -->
<br/>
<div class="middle">
  <div class="container">
    <div class="box-inner">
      <form name="entUserModelForm1">
      <div class="box-header well" data-original-title="">
        <h2><i class="glyphicon glyphicon-th"></i>用户信息</h2>

        <div class="box-icon">
          <a ng-click="edit()" class="btn btn-edit btn-round btn-default"><i
            class="glyphicon glyphicon-edit bigfont" ></i></a>
          <a ng-click="updata()" ng-disabled='!entUserModelForm1.$valid' class="btn btn-saveOrUpdate btn-round btn-default"><i
            class="glyphicon glyphicon-ok bigfont"></i></a>
          <!--<a href="#" class="btn btn-minimize btn-round btn-default"><i-->
            <!--class="glyphicon glyphicon-chevron-up"></i></a>-->
        </div>
      </div>
      <div class="box-content">
        <div class="row">
          <div class="col-md-12">
            <label for="yym">用户登录名
              <span ng-show="flag == 1">
                <span class="glyphicon glyphicon-ok" ng-show="entUserModelForm1.yym.$valid"></span>
                <span class="glyphicon glyphicon-remove" ng-show="!entUserModelForm1.yym.$valid"></span>
                <span ng-show="!entUserModelForm1.yym.$valid">此登录名已被占用</span>
              </span>
            </label>
            <p>
              <span ng-show="flag == 0 || userInfo.userId != null">
                <small>{{userInfo.yym}}</small>
              </span>
              <span ng-show="flag == 1 && userInfo.userId == null">
                <input ng-model="userInfo.yym" id="yym" name="yym" type="text" class="form-control" required ng-blur="checkName()"/>
              </span>
            </p>
          </div>
          <div class="col-md-12">
            <label for="ddm">用户名
              <span ng-show="flag == 1">
                <span class="glyphicon glyphicon-ok" ng-show="entUserModelForm1.ddm.$valid"></span>
                <span class="glyphicon glyphicon-remove" ng-show="!entUserModelForm1.ddm.$valid"></span>
              </span>
            </label>
            <p>
              <span ng-show="flag == 0">
                <small>{{userInfo.ddm}}</small>
              </span>
              <span ng-show="flag == 1">
                <input ng-model="userInfo.ddm" id="ddm" name="ddm" type="text" class="form-control" required />
              </span>
            </p>
          </div>
          <span ng-show="userInfo.userId == null">
            <div class="col-md-12">
              <label for="mima">登录密码
              <span ng-show="flag == 1">
                <span class="glyphicon glyphicon-ok" ng-show="entUserModelForm1.mima.$valid"></span>
                <span class="glyphicon glyphicon-remove" ng-show="!entUserModelForm1.mima.$valid"></span>
              </span>
              </label>
              <p>
                <input ng-model="userInfo.mima" id="mima" name="mima" type="password" class="form-control" required/>
              </p>
            </div>
          </span>
          <span ng-show="userInfo.userId == null">
            <div class="col-md-12">
              <label for="qrmima">确认密码
              <span ng-show="flag == 1">
                <span class="glyphicon glyphicon-ok" ng-show="entUserModelForm1.qrmima.$valid && userInfo.mima == qrmima"></span>
                <span class="glyphicon glyphicon-remove" ng-show="!entUserModelForm1.qrmima.$valid || qrmima!=userInfo.mima"></span>
              </span>
              </label>
              <p>
                <input ng-model="qrmima" id="qrmima" name="qrmima" type="password" class="form-control" required/>
              </p>
            </div>
          </span>
          <div class="col-md-12">
            <label for="sex">性别
              <span ng-show="flag == 1">
                <span class="glyphicon glyphicon-ok" ng-show="entUserModelForm1.sex.$valid"></span>
                <span class="glyphicon glyphicon-remove" ng-show="!entUserModelForm1.sex.$valid"></span>
              </span>
            </label>
            <p>
              <span ng-show="flag == 0">
                <small>
                <span ng-show="userInfo.sex == 0">
                  男
                </span>
                <span ng-show="userInfo.sex == 1">
                  女
                </span>
                </small>
              </span>
              <span ng-show="flag == 1">
                <select ng-model="userInfo.sex" class="form-control" id="sex" name="sex" required>
                  <option value="0">男</option>
                  <option value="1">女</option>
                </select>
              </span>
            </p>
          </div>
          <div class="col-md-12"><strong>出生日期</strong>
            <p>
              <span ng-show="flag == 0">
                <small id="sbsjjl">{{userInfo.birthday}}</small>
              </span>
              <span ng-show="flag == 1">
                <select name="birjnf" ng-model="birjnf">
                  <option value="0"></option>
                  <option value="{{nn}}" ng-repeat="nn in yearList">{{nn}}</option>
                </select>年
                <select name="birjyf"  ng-model="birjyf">
                  <option value="0"></option>
                  <option value="{{yue}}" ng-repeat="yue in ['01','02','03','04','05','06','07','08','09','10','11','12']">{{yue}}</option>
                </select>月
                <select name="birjday"  ng-model="birjday">
                  <option value="0"></option>
                  <option value="{{dd}}" ng-repeat="dd in ['01','02','03','04','05','06','07','08','09',10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]">{{dd}}</option>
                </select>日
              </span>
            </p>
          </div>
          <div class="col-md-12"><strong>联系方式（电话）</strong>
            <p>
              <span ng-show="flag == 0">
                <small id="phone">{{userInfo.phone}}</small>
              </span>
              <span ng-show="flag == 1">
                <input ng-model="userInfo.phone"  type="text" class="form-control"/>
              </span>
            </p>
          </div>
          <div class="col-md-12"><strong>手机</strong>
            <p>
              <span ng-show="flag == 0">
                <small id="mobile">{{userInfo.mobile}}</small>
              </span>
              <span ng-show="flag == 1">
                <input ng-model="userInfo.mobile"  type="text" class="form-control"/>
              </span>
            </p>
          </div>
          <div class="col-md-12"><strong>邮箱</strong>
            <p>
              <span ng-show="flag == 0">
                <small id="email">{{userInfo.email}}</small>
              </span>
              <span ng-show="flag == 1">
                <input ng-model="userInfo.email"  type="email" class="form-control"/>
              </span>
            </p>
          </div>
          <div class="col-md-12"><strong>通讯地址</strong>
            <p>
              <span ng-show="flag == 0">
                <small id="txdz">{{userInfo.txdz}}</small>
              </span>
              <span ng-show="flag == 1">
                <input ng-model="userInfo.txdz"  type="text" class="form-control"/>
              </span>
            </p>
          </div>
          <div class="col-md-12">
            <label for="yyzt">用户状态
              <span ng-show="flag == 1">
                <span class="glyphicon glyphicon-ok" ng-show="entUserModelForm1.yyzt.$valid"></span>
                <span class="glyphicon glyphicon-remove" ng-show="!entUserModelForm1.yyzt.$valid"></span>
              </span>
            </label>
            <p>
              <span ng-show="flag == 0">
                <small>
                <span ng-show="userInfo.yyzt == 0">
                  正常
                </span>
                <span ng-show="userInfo.yyzt == 1">
                  注销
                </span>
                <span ng-show="userInfo.yyzt == 2">
                  锁定
                </span>
                </small>
              </span>
              <span ng-show="flag == 1">
                <select ng-model="userInfo.yyzt" class="form-control" id="yyzt" name="yyzt" required>
                  <option value="0">正常</option>
                  <option value="1">注销</option>
                  <option value="2">锁定</option>
                </select>
              </span>
            </p>
          </div>
        </div>
      </div>
    </form>
    </div>
  </div>
</div>
